﻿using CTP.CRM.Repository.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CTP.CRM.Repository.Setting.Entitys
{
    /// <summary>
    /// 系统设置表
    /// </summary>
    [SugarTable("t_setting")]
    public class SettingEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设置类型，1.系统设置，2.业务设置，3.用户设置
        /// </summary>
        [SugarColumn(ColumnName = "Type")]
        public SettingTypeEnum Type { get; set; }

        /// <summary>
        /// Key键
        /// </summary>
        [SugarColumn(ColumnName = "Key")]
        public string Key { get; set; }

        /// <summary>
        /// Value值
        /// </summary>
        [SugarColumn(ColumnName = "Value")]
        public string Value { get; set; }

        /// <summary>
        /// 外键
        /// </summary>
        [SugarColumn(ColumnName = "ForeignKey")]
        public int ForeignKey { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateTime")]
        public DateTime UpdateTime { get; set; }
    }
}
